package com.sky.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 用户行为日志
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Document(collection = "logs")
public class UserActionLog {
    @Id
    private String id;
    @Field("u_id")
    private Integer uId;
    @Field("b_id")
    private String bId;
    private String action;
    private Date timestamp;
    private Integer score;
}